package com.java.multipledatasource.spring.mapper;

import org.apache.ibatis.annotations.Select;

/**
 * @author hu
 * @version 1.0
 * @date 2020/12/7 0007 下午 8:46
 */
public interface UserMapper {

    /**
     * 根据id 查询
     * @param id
     * @param age
     */
    @Select("select * from table where id = #{id} and age = #{id}")
    void findDetailByIdAndAge(String id, int age);

    /**
     * 查询所有
     */
    void findList();
}
